<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>教师列表</title>
</head>
<body>
<h1>教师列表</h1>
<table cellspacing="0" border="2px" bordercolor="green">
  <tr>
    <th>教师号</th>
    <th>姓名</th>
    <th>专业</th>
    <th>操作</th>
  </tr>
  <tr th:each="teacher : ${teachers}">
    <td th:text="${teacher.id}"></td>
    <td th:text="${teacher.name}"></td>
    <td th:text="${teacher.major}"></td>
    <td>
      <a th:href="@{'/assignment/page?teacherId=' + ${teacher.id}}">分配学生</a>
    </td>
  </tr>
</table>
<br>
<a href="/Teacher_input">新增教师</a>
<br>
<a href="/stu_input">新增学生</a>
</body>
</html>